<?php
require_once('model/Place.php');

class Place extends DataObjects_Place
{
	
	/**
	 * Get all place
	 *
	 * @return place object
	 */
	public function getList(){
		$place = new Place();
		$place->orderBy('id');
		$p = new FRM_Pager('page',Parameter::$params["PAGING_DEFAULT_ITEM_PER_PAGE"], new FRM_Pager_RangeIterator(1, Parameter::$params['PAGING_DEFAULT_PAGE_DELTA'], 1));
		$place->setPager($p);
		$place->find();
		
		return $place;
	}

}
?>